package com.yr.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;

@Getter
@Setter
public class order implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String product;

    private Integer num;

    private BigDecimal money;

    private Long userId;

    @Override
    public String toString() {
        return "order{" +
                "id=" + id +
                ", product='" + product + '\'' +
                ", num=" + num +
                ", money=" + money +
                ", userId=" + userId +
                '}';
    }

    public order() {
    }
}
